home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
SHARED.CST
/
00014_Script_Practice Function Scripts
< prev
next >
Wrap
Text File
|
1998-09-21
|
3KB
|
109 lines
global gClicked, gControls,gBt,gPlayerFlag,sndFlag1,gAVI,CrdFlag1,gTx,gStopFlag,gLast,gMode,gStars
-- record the screen status before toasting everything to go to the Session Movie
on Practice
setsprites
set gmode = 2
-- save the current star settings
Set gStars =[]
repeat with x = 12 to 20
append gStars, the blend of sprite x
end repeat
ToastVideoControls
BigMovie
play movie "Session"
end
-- Restore the screen status from Castmember "LastStatus"
on SetModeButton
puppetsprite 4, true
set the type of sprite 4= 1
set the ink of sprite 4 = 32
set the blend of sprite 4 = 100
set the castnum of sprite 4 to the number of cast "ModeBar"
set the locH of sprite 4= 155
set the LocV of sprite 4 = 284
set the visible of sprite 4 = true
set the type of sprite 34= 1
set the ink of sprite 34 = 32
set the blend of sprite 34 =0
set the castnum of sprite 34 to the number of cast "ModeBar1"
set the locH of sprite 34= 155
set the LocV of sprite 34 = 284
set the visible of sprite 34 = true
mSetCommand (gControls),34, "Practice"
end
on UnModeButton
set the type of sprite 34 = 0
set the type of sprite 4 = 0
puppetsprite 4, false
end
on ScreenDownPractice
set gMode =1
puppetSound 0
set the mouseDownScript= "Menu"
-- set up some specifics for the video screen
set the visible of sprite 11 to false
set the visible of sprite 32 to false
set the visible of sprite 31 to true
set the blend of sprite 3 to 0
set the visible of sprite 10 to false
updatestage
mSetSecondaryCards(gControls) gPlayerFlag, (gTx)
setSpritesSml
-- set up practice mode button in 4 movies
if gMode = 1 then SetModeButton
updatestage
-- loads a video
set gStopFlag = 0
loadvideo gplayerflag
--sets sprite for screenup on
set the type of sprite 31 = 1
set the castnum of sprite 31 to the number of cast "ScrnUp"
set the loch of sprite 31 = 330
set the locv of sprite 31 = 335
set the ink of sprite 31 = 32
set the blend of sprite 31 = 0
setSpritesSml
showcard1
updatestage
set gAVI =EMPTY
set the visible of sprite 10 to true
set the blend of sprite 3 to 100
-- change some functions on the fly
mSetCommand(gControls),31,"ScreenUp"
mSetCommand (gControls),32, EMPTY
mSetCommand (gControls),34, "Practice"
-- set the stars back to where they were
repeat with x = 12 to 20
set Status = getAt(gStars, x-11)
set the blend of sprite x = value(status)
end repeat
set gStars = []
setControlBar
updatestage
end